import { createSSRApp } from "vue";
import * as Pinia from 'pinia';
import App from "./App.vue";


const echarts = require('./uni_modules/lime-echart/static/echarts.min.js');
import mychat from './utils/mySocket'




// @import './style/index.scss'
export function createApp() {
  const app = createSSRApp(App);
  app.provide('echarts', echarts)
  app.provide('mychat', mychat)
  // app.config.globalProperties.$mychat = mychat;
//   app.config.globalProperties.$http = $http;
  app.use(Pinia.createPinia());
  return {
    app,
    Pinia
  };
}


// 在 uni-app 项目中，可以把 $http 挂载到 uni 顶级对象之上，方便全局调用


